<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Discount_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-discount_type" class="form-control selectpicker" name="row[discount_type]">
                {foreach name="discountTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.discount_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group" id="discount_ratio">
        <label class="control-label col-xs-12 col-sm-2">{:__('Discount_ratio')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discount_ratio" class="form-control" step="0.01" name="row[discount_ratio]" type="number" value="{$row.discount_ratio|htmlentities}">
        </div>
    </div>
    <div class="form-group" id="use_consumption_limit">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_consumption_limit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-use_consumption_limit" class="form-control" step="0.01" name="row[use_consumption_limit]" type="number" value="{$row.use_consumption_limit|htmlentities}">
        </div>
    </div>
    <div class="form-group"  id="full_reduction_fee">
        <label class="control-label col-xs-12 col-sm-2">{:__('Full_reduction_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-full_reduction_fee" class="form-control" step="0.01" name="row[full_reduction_fee]" type="number" value="{$row.full_reduction_fee|htmlentities}">
        </div>
    </div>
    <div class="form-group" id="lijian_fee">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lijian_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lijian_fee" class="form-control" step="0.01" name="row[lijian_fee]" type="number" value="{$row.lijian_fee|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receive_start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receive_start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[receive_start_time]" type="text" value="{:$row.receive_start_time?datetime($row.receive_start_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receive_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receive_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[receive_end_time]" type="text" value="{:$row.receive_end_time?datetime($row.receive_end_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_expire_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-use_expire_type" class="form-control selectpicker" name="row[use_expire_type]">
                {foreach name="useExpireTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.use_expire_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group"  id="use_start_time">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-use_start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[use_start_time]" type="text" value="{:$row.use_start_time?datetime($row.use_start_time):''}">
        </div>
    </div>
    <div class="form-group" id="use_end_time">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-use_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[use_end_time]" type="text" value="{:$row.use_end_time?datetime($row.use_end_time):''}">
        </div>
    </div>
    <div class="form-group" id="effective_day">
        <label class="control-label col-xs-12 col-sm-2">{:__('Effective_day')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-effective_day" class="form-control" name="row[effective_day]" type="number" value="{$row.effective_day|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receive_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receive_number" class="form-control" name="row[receive_number]" type="number" value="{$row.receive_number|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Tatal')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-tatal" class="form-control" name="row[tatal]" type="number" value="{$row.tatal|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Sruplus')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-sruplus" class="form-control" name="row[sruplus]" type="number" value="{$row.sruplus|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Already_out')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-already_out" class="form-control" name="row[already_out]" type="number" value="{$row.already_out|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Illustrate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-illustrate" class="form-control editor" rows="5" name="row[illustrate]" cols="50">{$row.illustrate|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
